package com.lq.ecoldchain.ui.mymileage.details

import android.databinding.DataBindingUtil
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.lq.ecoldchain.R
import com.lq.ecoldchain.databinding.LayoutMileageDetailItemBinding
import com.lq.ecoldchain.entity.MileageDetailBean

/*
*2019/1/18 0018  16:53
*function by lq
*/
class MileageDetailAdapter(list:List<MileageDetailBean>):BaseQuickAdapter<MileageDetailBean,BaseViewHolder>(R.layout.layout_mileage_detail_item,list){
    override fun convert(helper: BaseViewHolder, item: MileageDetailBean) {
        val binding = DataBindingUtil.bind<LayoutMileageDetailItemBinding>(helper.itemView)!!
        binding.bean = item
        binding.executePendingBindings()

    }
}